Skip to content

Clarify body types#738

Merged
hadley merged 6 commits into
mainfrom
body-refactoring
Jun 16, 2025
Merged

Clarify body types#738
hadley merged 6 commits into
mainfrom
body-refactoring

Conversation

@hadley
Copy link
Copy Markdown
Member

@hadley hadley commented Jun 13, 2025

General refactoring of code and tests in prepation for #718. It should now be much clearer what sorts of body types are permissible. Includes a few small improvements to error messages which I noticed while adding additional tests to get to 100% test coverage.

@sckott: This will break vcr (and maybe webmockr?) but I think we can synchronise releases to avoid too much downstream pain.

hadley added 6 commits June 13, 2025 17:52
General refactoring of code and tests in prepation for #718. It should now be much clearer what sorts of body types are permissible. Includes a few small improvements to error messages which I noticed while adding additional tests to get to 100% test coverage.
@hadley hadley merged commit 32451b3 into main Jun 16, 2025
13 checks passed
@hadley hadley deleted the body-refactoring branch June 16, 2025 19:41
@sckott
Copy link
Copy Markdown

sckott commented Jun 17, 2025

@hadley Thanks for the heads up. I just pulled down main and indeed breaks vcr tests. i'll work on fixing those issues. It might break webmockr too - still looking into that.

@hadley
Copy link
Copy Markdown
Member Author

hadley commented Jun 17, 2025

@sckott I think you should probably wait on #718 before doing any vcr work. Then you'll be able to keep the old code for packageVersion("httr2") < 1.1.2 and use some convenient httr2 helper for newer versions.

@sckott
Copy link
Copy Markdown

sckott commented Jun 17, 2025

@hadley Will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants